/*
 * Copyright (c) 2025 Li Auto Inc. and its affiliates
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef INCLUDE_VBS_TRANSPORT_IPCTRANSPORTDESCRIPTOR_H_
#define INCLUDE_VBS_TRANSPORT_IPCTRANSPORTDESCRIPTOR_H_

namespace vbs {
namespace transport {

struct IPCTransportDescriptor : public TransportDescriptorInterface {
    //! Destructor
    virtual ~IPCTransportDescriptor() = default;

    //! Constructor
    RTPS_DllAPI IPCTransportDescriptor() : TransportDescriptorInterface(65500U, 1) {}

    //! Copy constructor
    RTPS_DllAPI IPCTransportDescriptor(const IPCTransportDescriptor& t) = default;

    //! Copy assignment
    RTPS_DllAPI IPCTransportDescriptor& operator=(const IPCTransportDescriptor& t) = default;

    //! Comparison operator
    RTPS_DllAPI bool operator==(const IPCTransportDescriptor& t) const {
        return TransportDescriptorInterface::operator==(t);
    }
    TransportInterface* create_transport() const override;
    uint32_t min_send_buffer_size() const override { return std::numeric_limits<uint32_t>::max(); }
    TransmitorType get_type() const override;
};

}  // namespace transport
}  // namespace vbs

#endif  // INCLUDE_VBS_TRANSPORT_IPCTRANSPORTDESCRIPTOR_H_
